package com.matt.domain.course;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/3/9
 * *******************************
 */
@Entity
@Data
@Table(name = "course_plan_topic")
@EqualsAndHashCode(callSuper = true)
public class CoursePlanTopic extends Domain{

    @Column(columnDefinition = " int DEFAULT 1 COMMENT ' 类型：1，SAT早教课程，2，园区自建，3，公共课程 ' ")
    private Integer courseType;

    @Column(columnDefinition = " varchar(32) COMMENT ' 课程id 和type一起查询 ' ")
    private String courseId;

    @Column(columnDefinition = " varchar(255) COMMENT ' 类型名称 ' ")
    private String typeName;

    @Column(columnDefinition = " varchar(255) COMMENT ' 课程名称 ' ")
    private String courseName;

    @Column(columnDefinition = " datetime  COMMENT ' 开始时间 ' ")
    private Date beginTime;

    @Column(columnDefinition = " datetime  COMMENT ' 结束时间 ' ")
    private Date endTime;

    @Column(columnDefinition = " datetime  COMMENT ' 课程时间 ' ")
    private Date courseDate;

    @Column(columnDefinition = "varchar(32) COMMENT '主题id'")
    private String topicId;

    @Column(columnDefinition = " varchar(100) COMMENT ' 备注信息 ' ")
    private String remark;

    @Transient
    private String topicName;
}
